package cn.gdk.gaodekecc.feign;


import cn.gdk.gaodekecc.domain.MoveUser;
import cn.gdk.gaodekecc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="service-move",fallbackFactory =MoveTicketServiceFactory.class )
public interface MoveTicketService {
    @RequestMapping(value = "/movieTicket/list",method = RequestMethod.GET)
    JSONResult list();
    @RequestMapping(value = "/movieTicket/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);
   /* @RequestMapping(value = "/buymovie/{movieId}/{count}",method = RequestMethod.POST)
    JSONResult buymovie(@PathVariable Long movieId,@PathVariable Integer count );*/
    @RequestMapping(value = "/movieTicket/buymovie/{movieId}/{count}",method = RequestMethod.POST)
    JSONResult buymovie(@PathVariable Long movieId,@PathVariable Integer count );
    @RequestMapping(value = "/moveUser/movieTicketViewing/{movieId}/{userId}",method = RequestMethod.POST)
    JSONResult movieTicketViewing(@PathVariable Long movieId,@PathVariable Long userId );
    @RequestMapping(value="/moveUser/save",method= RequestMethod.POST)
    JSONResult saveOrUpdate(@RequestBody MoveUser moveUser);
   /* @RequestMapping(value = "/movieTicket/buy",method = RequestMethod.POST)
    JSONResult buy(@RequestBody UserMoveDto userMoveDto);*/
}
